package net.jgrm.product.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * 库存扣减请求DTO
 */
@Data
public class StockDecreaseRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 扣减数量
     */
    private Integer quantity;

    /**
     * 操作人ID（可选）
     */
    private Long operatorId;

    /**
     * 备注（可选）
     */
    private String remark;

    public StockDecreaseRequest() {
    }

    public StockDecreaseRequest(Long productId, Integer quantity) {
        this.productId = productId;
        this.quantity = quantity;
    }
}